package com.love.cloud.admin.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.love.cloud.common.mybatis.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author hongdongqu
 */
@Data
@Entity
@ApiModel(value = "部门责任人关联表")
@Table(name = "sys_dept_principal")
@TableName("sys_dept_principal")
@EqualsAndHashCode(callSuper = false)
@org.hibernate.annotations.Table(appliesTo = "sys_dept_principal",comment="系统部门负责人关联表")
public class SysDeptPrincipal extends BaseEntity {

    @Column(columnDefinition = "bigint COMMENT '部门id'")
    @ApiModelProperty(value = "部门id")
    private Long deptId;

    @Column(columnDefinition = "VARCHAR(255) COMMENT '部门名称'")
    @ApiModelProperty(value = "部门名称")
    private String deptName;

    @Column(columnDefinition = "bigint COMMENT '用户id'")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    @Column(columnDefinition = "VARCHAR(128) COMMENT '用户_部门id'")
    @ApiModelProperty(value = "用户_部门id")
    private String userDeptId;

    @Column(columnDefinition = "VARCHAR(255) COMMENT '用户名称'")
    @ApiModelProperty(value = "用户名称")
    private String userName;
}
